70 WDT_A_hold(WDT_A_BASE);
74 GPIO_setAsPeripheralModuleFunctionOutputPin(
88 Comp_B_initParam initParam = {0};
89 initParam.positiveTerminalInput = COMP_B_INPUT0;
90 initParam.negativeTerminalInput = COMP_B_VREF;
91 initParam.powerModeSelect = COMP_B_POWERMODE_ULTRALOWPOWER;
92 initParam.outputFilterEnableAndDelayLevel = COMP_B_FILTEROUTPUT_DLYLVL1;
93 initParam.invertedOutputPolarity = COMP_B_NORMALOUTPUTPOLARITY;
94 Comp_B_init(COMP_B_BASE, &initParam);
103 Comp_B_configureReferenceVoltageParam refVoltageParam = {0};
104 refVoltageParam.supplyVoltageReferenceBase = COMP_B_VREFBASE_VCC;
105 refVoltageParam.lowerLimitSupplyVoltageFractionOf32 = 16;
106 refVoltageParam.upperLimitSupplyVoltageFractionOf32 = 16;
107 refVoltageParam.referenceAccuracy = COMP_B_ACCURACY_STATIC;
108 Comp_B_configureReferenceVoltage(COMP_B_BASE, &refVoltageParam);
111 Comp_B_enable(COMP_B_BASE);
117 __bis_SR_register(LPM4_bits);